<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html>
<html lang="UTF-8">

<head>
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/css/main.css">
    <style>
        body{
          /*margin-right: 500px;*/
            margin-left: -300px;
            margin-top: -60px;
        }
    </style>
</head>
<body>
<div class="container-fluid">
    <div class="row">
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">

            <div class="panel panel-default">
                <div class="panel-heading">员工详细信息<div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i class="glyphicon glyphicon-question-sign"></i></div></div>
                <div class="panel-body">

        <form action="/user/update" method="post">

            <%--当前页传过来--%>
            <input type="hidden" name="pageNum" value="${param.pageNum}">

            <div class="form-group">
                <label for="id">ID</label>
                <input type="text"
                       value="${xiang.id}"
                       name="id"
                       class="form-control"
                       id="id"
                >
            </div>

            <div class="form-group">
                <label for="username">用户名</label>
                <input type="text"
                       value="${xiang.username}"
                       name="username"
                       class="form-control"
                       id="username"
                >
            </div>

            <div class="form-group">
                <label for="userpassword">密码</label>
                <input type=password
                       value="${xiang.userpassword}"
                       name="userpassword"
                       class="form-control"
                       id="userpassword"
                >
            </div>

            <div class="form-group">
                <label for="phone">电话号</label>
                <input type="text"
                       value="${xiang.phone}"
                       name="phone"
                       class="form-control"
                       id="phone"
                >
            </div>

            <div class="form-group">
                <label for="name">姓名</label>
                <input type="text"
                       value="${xiang.name}"
                       name="name"
                       class="form-control"
                       id="name"
                >
            </div>

            <div class="form-group">
                <label for="sex">性别</label>
                <input type="text"
                       value="${xiang.sex}"
                       name="sex"
                       class="form-control"
                       id="sex"
                >
            </div>
            <div class="form-group">
                <label for="email">邮箱</label>
                <input type="text"
                       value="${xiang.email}"
                       name="email"
                       class="form-control"
                       id="email"
                >
            </div>

            <div class="form-group">
                <label for="age">年龄</label>
                <input type="text"
                       value="${xiang.age}"
                       name="age"
                       class="form-control"
                       id="age"
                >
            </div>

            <div class="form-group">
                <label for="address">家庭住址</label>
                <input type="text"
                       value="${xiang.address}"
                       name="address"
                       class="form-control"
                       id="address"
                >
            </div>

            <div class="form-group">
                <label for="datatime">入职时间</label>
                <input type="text"
                       value="${xiang.datatime}"
                       name="datatime"
                       class="form-control"
                       id="datatime"
                >
            </div>



                <button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i> 修改</button>
                <button type="reset" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 重置</button>
                <button type="button"  onclick="window.history.back(-1)" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 返回</button>
        </form>
                </div>
            </div>
            </div>
        </div>
    </div>
</div>

</div>
</body>
</html>
